<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i
                                class="fa fa-refresh"></i> </a>

                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('order/edit')}"
                           data-operate-del="{:$auth->check('order/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form class="form-commonsearch" role="form" data-toggle="validator" method="POST" action="">
        <div style="border-radius:2px;margin-bottom:10px;background:#f5f5f5;padding:15px 20px;">
            <div class="row">

                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">店铺/商品SKU</label>
                        <div class="row" data-toggle="cxselect" data-selects="group,admin">
                            <div class="col-xs-6">
                                <select class="group form-control" name="shops_id"
                                        data-url="shops/cxselect?type=shop"></select>
                            </div>
                            <div class="col-xs-6">
                                <select class="admin form-control" name="goodssku_id"
                                        data-url="shops/cxselect?type=goodssku"
                                        data-query-name="shops_id"></select>
                            </div>
                            <input type="hidden" class="operate" data-name="shops_id" value="="/>
                            <input type="hidden" class="operate" data-name="goodssku_id" value="="/>
                        </div>
                    </div>
                </div>

                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">订单创建时间</label>
                        <input type="hidden" class="operate" data-name="order_create_time" value="RANGE"/>
                        <div>
                            <input type="text" class="form-control datetimerange" name="order_create_time" value=""/>
                        </div>
                    </div>
                </div>

                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label">报表类型</label>
                        <input type="hidden" class="operate" data-name="report_type" value=""/>
                        <div>
                            <select class="selectpicker" name="report_type">
                                <option value="0">日报</option>
                                <option value="1">月报</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="form-group">
                        <label class="control-label"></label>
                        <div class="row">
                            <div class="col-xs-6">
                                <input type="submit" class="btn btn-success btn-block" value="提交"/>
                            </div>
                            <div class="col-xs-6">
                                <input type="reset" class="btn btn-primary btn-block" value="重置"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</script>